package cn.cdl.springcloud.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-eureka-client")  //表示要调用的服务为service-eureka-client
public interface HelloService {

	@RequestMapping(value="hi",method=RequestMethod.GET)    //表示要调用 service-eureka-client 服务的 hi 接口
	String Hello(@RequestParam(value="name") String name);
	
}
